package foo;

public class Worker extends Thread {
	private final Task currentTask;

	public Worker(final Task newTask) {
		currentTask = newTask;
	}

	@Override
	public void run() {
		currentTask.perform();
	}
}
